feat(gui): Add user option to adjust scale of game fonts in relation to resolution#1457
Conversation
828eaa2 to
b632b27
Compare
|
Tweaked some naming but theres likely going to be the odd bit of name tweaking still. |
b632b27 to
654b37e
Compare
xezon
left a comment
There was a problem hiding this comment.
I suggest to merge this change before the other, so we can experiment with this.
i will tweak and rebase this on main so it can be merged independent of other font scaling tweaks. |
654b37e to
5b6391f
Compare
|
Rebased, removed the other font scaling stuff and tweaked based on feedback. This now will not scale the font if the value is set to zero, which i have set as the default. |
|
This is not what I meant :)
|
5b6391f to
d1843fa
Compare
|
Tweaked and pushed. |
|
One more thought: If a user sets the scale to 1, then we would expect a linear scale. But instead it would "secretly" scale by 0.7 * 1. I wonder if we should do something about that. |
Should we override whatever Situation here ends up a bit like what the scroll Anchor PR is doing. |
|
Maybe start m_resolutionFontSizeAdjustment as -1 and if it less than 0 then we use Language.ini settings, otherwise user setting. Not sure. |
d1843fa to
37ee9c5
Compare
|
So tweaked this now so by default, for this PR, the user based setting does not adjust the default from languages.ini |
37ee9c5 to
1105ede
Compare
|
Tweaked based on some of the feedback. |
1105ede to
2c6ada7
Compare
|
Tweaked now so the GlobalLanguage reads from the options.ini and loads the value locally. The options menu then reads from the options ini and sets the value in GlobalLanguage |
|
will replicate to generals later if we think this is good to go now. |
2c6ada7 to
8845a00
Compare
|
Tweaked and replicated to generals |
8845a00 to
72e16f6
Compare
|
Tweaked and pushed. |
72e16f6 to
0188f49
Compare
|
GUIEdit doesn't start anymore after this PR. |
|
@Mauller Can you check please? |
|
It opens and runs perfectly fine for me when building it locally. |
|
So opening the build artifact, it's crashing when trying to retrieve the user path to the game options in global languages |
|
This seems to only be a VC6 issue |
|
Think i may have figured it out now, global languages is initialised before global data in guiedits init function. Interesting that VS22 builds are immune to this if it starts working for VC6. |
…to resolution (TheSuperHackers#1457) Adds new option ResolutionFontAdjustment=0..100 to Options.ini
…to resolution (TheSuperHackers#1457) Adds new option ResolutionFontAdjustment=0..100 to Options.ini

This PR adds user based font scaling adjustment to the game.
The value can be set within the options.ini by setting
ResolutionFontAdjustment = 10etc, where the value is a percentage increase, the default being 0% of the original scale.This value acts on the normal ini based resolution scaling to give some user flexibility.
TODO: